package com.offcn.service.Impl;

import com.offcn.dao.CourseUserDao;
import com.offcn.dao.Impl.CourseUserDaoImpl;
import com.offcn.entity.Course;
import com.offcn.entity.CourseUser;
import com.offcn.service.CourseUserService;
import com.offcn.utils.PageTool;

import java.util.List;

public class CourseUserServiceImpl implements CourseUserService {
    CourseUserDao dao = new CourseUserDaoImpl();

    @Override
    public int getTotalCount(String ids) {
        return dao.getTotalCount(ids);
    }

    @Override
    public List<CourseUser> findByPage(PageTool pageTool, String search) {
        return dao.findByPage(pageTool, search);
    }

    @Override
    public int updateCourseUser(String id, String cid) {
        return dao.updateCourseUser(id, cid);
    }

    @Override
    public int delAll(String arr) {
        return dao.delAll(arr);
    }

}
